
<link rel="stylesheet" href="{SITE_URL}plugins/pubs/uploadimg/css/mobile-uploadImg.css">
<script type="text/javascript" charset="utf-8" src="{SITE_URL}plugins/pubs/uploadimg/js/mobile-uploadCompresserImg.js"> </script>
<script type="text/javascript" charset="utf-8" src="{SITE_URL}plugins/pubs/uploadimg/js/mobile-uploadImg.js"></script>



        <div id="uploadImgForm">
            <div class="mbupload_frame" style="height:60px">
                <div class="mbupload_photoList" >
                    <ul>
                        <li class="mbupload_on mbupload_addPic mbupload_addImg"></li>
                    </ul>

                </div>
                <div class="mbupload_bgimg">
                    <div class="iconSendImg mbupload_addImg" style="background:url({SITE_URL}public/images/pic.png);background-size:40px auto;background-repeat:no-repeat;"></div>
                </div>
            </div>
        </div>



<script type="text/javascript">

    var objUploadImgForm = {};
    objUploadImgForm.uploadUrl = "{SITE_URL}/index.php?app=pubs&ac=upload";//上传图片的地址
    objUploadImgForm.formHtmlId = "#uploadImgForm";//上传图片的ID
    objUploadImgForm.maxUpload = 1;//上传图片的最大张数
    objUploadImgForm.uploadMaxW = 800; //生成图片的最大宽度
    objUploadImgForm.uploadMaxH = 800; //生成图片的最大高度
    objUploadImgForm.uploadQuality = 1; //目标jpg图片输出质量
    objUploadImgForm.uploadPicSize = 8;//上传限制图片大小(MB)  默认8M
    objUploadImgForm.uploadPicMore = true;//是否允许多图上传  默认单张上传
    objUploadImgForm.onceMaxUpload = 1;//多图上传时，一次上传的最大张数 默认10
    objUploadImgForm.uploadDefaultImgUrl = "{SITE_URL}plugins/pubs/uploadimg/images/defaultImg.png";//压缩图片时的默认图片地址
    mobileUploadImg(objUploadImgForm);



</script>
